package com.jiangjiang.eshop.logistics.api;

import lombok.AllArgsConstructor;
import lombok.Data;

import java.util.Date;
import java.util.List;

/**
 * 查询物流进度的响应
 * @author zhonghuashishan
 *
 */
@Data
public class QueryProgressResponse {
	
	public static final Integer SUCCESS = 1;
	public static final Integer FAILURE = 0;
	
	/**
	 * 响应状态
	 */
	private Integer status;
	/**
	 * 追踪活动
	 */
	private List<TraceEvent> traceEvents;

	/**
	 * 物流追踪活动
	 * @author zhonghuashishan
	 *
	 */
	@Data
	@AllArgsConstructor
	public static class TraceEvent {
		
		/**
		 * 活动发生的时间
		 */
		private Date time;
		/**
		 * 活动的描述
		 */
		private String description;
		
	}

	
}
